Nathaniel
All tags

#Distributed Systems

10 posts tagged with "Distributed Systems"

Atomic quota reservations in PostgreSQL for a high-concurrency LLM gateway
LLMTypeScriptPostgreSQL

Atomic quota reservations in PostgreSQL for a high-concurrency LLM gateway

Billing for a normal REST API is easy: one request equals one fixed unit, or you count requests after the fact. Billing for an LLM inference gateway is annoyingly asymmetric. When a streaming request...

Apr 17, 20263 min135
Tracing recursive agent tool calls with conversation fingerprints
AI AgentsMCPTypeScript

Tracing recursive agent tool calls with conversation fingerprints

Standard HTTP distributed tracing (OpenTelemetry traceparent headers) works great when Request A calls Service B which calls Database C within 300 milliseconds. Multi-agent MCP workflows do not look l...

Nov 30, 20252 min158
Spinning up throwaway EC2 security sandboxes in seconds (and actually reaping them)
AI AgentsAWSDevOps

Spinning up throwaway EC2 security sandboxes in seconds (and actually reaping them)

Running an AI agent that performs automated security testing (port scanning, fuzzing, running exploits against isolated targets, executing untrusted PoC scripts) inside a shared container cluster make...

Sep 28, 20253 min167
Bridging stdio and SSE/HTTP inside one MCP gateway
AI AgentsNode.jsMCP

Bridging stdio and SSE/HTTP inside one MCP gateway

When Model Context Protocol (MCP) started taking off in early 2025, half the useful tool servers in the wild only spoke stdio (meant to be spawned as a local child process on a developer's laptop), wh...

May 27, 20253 min231
Running one bot across Web, Discord, and Telegram without double replies
LLMNode.jsTypeScript

Running one bot across Web, Discord, and Telegram without double replies

Building a chat UI for an AI agent on the web is straightforward. Building a publishing console where a user clicks one button and deploys that exact same agent simultaneously to a Web widget, a Disco...

Apr 22, 20243 min204
Keeping multi-chain RPC ingestion alive 24/7 with health probing
DevOpsWeb3Ethereum

Keeping multi-chain RPC ingestion alive 24/7 with health probing

If you only ever query one Ethereum RPC provider during local testing, you might assume JSON-RPC endpoints behave like normal REST APIs: either they return HTTP 200 with fresh data, or they return 5xx...

Dec 14, 20232 min152
Chain reorgs will break your indexer sooner or later
BlockchainWeb3Ethereum

Chain reorgs will break your indexer sooner or later

If you build an EVM on-chain analytics pipeline and just loop blockNumber++ calling ethgetBlockByNumber, everything looks completely solid on day one. Your charts update within a couple of seconds of...

Aug 6, 20233 min186
Chasing tail latency in search ad serving
PerformanceDistributed Systems

Chasing tail latency in search ad serving

After joining Microsoft in Suzhou to work on Bing multimedia monetization, the biggest adjustment for me was how unforgiving search-page latency budgets are. In normal web apps, shaving 40ms off an AP...

Jul 23, 20223 min217
Why calendar recurrence and DST will make you question time itself
Node.jsTypeScriptDistributed Systems

Why calendar recurrence and DST will make you question time itself

If you ever want to humble yourself as a software engineer, volunteer to build a bidirectional calendar sync engine for an online education platform with students and tutors spread across New Zealand,...

Jan 19, 20224 min249
Surviving alarm storms when a telecom link starts flapping
Node.jsDevOpsDistributed Systems

Surviving alarm storms when a telecom link starts flapping

At my first job working on 4G/5G core network monitoring, I used to think the hard part of telemetry was parsing weird binary protocols. SNMP traps, HTTP/2 streams, Diameter messages, and proprietary...

Nov 28, 20214 min166